<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link type="text/css" rel="stylesheet" href="/TP/Public/css/style.css" />
    <!--[if IE 6]>
    <script src="js/iepng.js" type="text/javascript"></script>
        <script type="text/javascript">
           EvPNG.fix('div, ul, img, li, input, a'); 
        </script>
    <![endif]-->
        
    <script type="text/javascript" src="/TP/Public/js/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="/TP/Public/js/menu.js"></script>    
        
	<script type="text/javascript" src="/TP/Public/js/select.js"></script>
  <style>
    .m_des{
      margin-top:0;
    }
    .m_right{
      padding-bottom:0;
    }
    table{
        font-size: 12px;
      }

    table td{
        height: 30px;
      }

    .eidt{
      border:1px solid red;
      width: 300px;
      height: 200px;
      position:fixed;
      background:white;
      left:50%;
      top:40%;
      display:none;
      z-index: 10;
    }
    table.mon_tab tr td{
      padding: 0;
    }
  </style> 
    
<title>数码商城个人中心</title>
</head>
<body>  
<div class="soubg">
    <div class="sou">
        <span><a href="<?php echo U('home/index/index');?>">回到首页</a></span>
        <span class="fr">
            <span class="ss">
                <div class="ss_list">
                    <a href="#">收藏夹</a>
                    <div class="ss_list_bg">
                        <div class="s_city_t"></div>
                        <div class="ss_list_c">
                            <ul>
                                <li><a href="#">我的收藏夹</a></li>
                            </ul>
                        </div>
                    </div>     
                </div>
                <div class="ss_list">
                    <a href="#">客户服务</a>
                    <div class="ss_list_bg">
                        <div class="s_city_t"></div>
                        <div class="ss_list_c">
                            <ul>
                                <li><a href="#">客户服务</a></li>
                                <li><a href="#">客户服务</a></li>
                                <li><a href="#">客户服务</a></li>
                            </ul>
                        </div>
                    </div>    
                </div>
                <div class="ss_list">
                    <a href="#">网站导航</a>
                    <div class="ss_list_bg">
                        <div class="s_city_t"></div>
                        <div class="ss_list_c">
                            <ul>
                                <li><a href="#">网站导航</a></li>
                            </ul>
                        </div>
                    </div>    
                </div>
            </span>
            <span class="fl">|&nbsp;关注我们：</span>
            <span class="s_sh"><a href="#" class="sh1">新浪</a><a href="#" class="sh2">微信</a></span>
            <span class="fr">|&nbsp;<a href="#">手机版&nbsp;<img src="/TP/Public/images/s_tel.png" align="absmiddle" /></a></span>
        </span>
    </div>
</div>
<div class="m_top_bg" style="height: 60px;">
   
</div>
<!--End Header End--> 
<div class="i_bg bg_color">
    <!--Begin 用户中心 Begin -->
	<div class="m_content">
   		<div class="m_left">
	<div class="left_n">管理中心</div>
    <div class="left_m">
        <div class="left_m_t t_bg2">会员中心</div>
        <ul>
            <li><a href="<?php echo U('home/member/index');?>">用户信息</a></li>
            <li><a href="<?php echo U('home/member/Member_Collect');?>">我的收藏</a></li>
            <!-- <li><a href="Member_Msg.html">我的留言</a></li> -->
            <li><a href="<?php echo U('home/member/Member_comment');?>">我的评论</a></li>
        </ul>
    </div>
    <div class="left_m">
    	<div class="left_m_t t_bg1">订单中心</div>
        <ul>
        	<li><a href="<?php echo U('home/member/member_order');?>">我的订单</a></li>
            <li><a href="<?php echo U('home/member/Member_Address');?>">收货地址</a></li>
        </ul>
    </div>
    <div class="left_m">
    	<div class="left_m_t t_bg3">账户中心</div>
        <ul>
        	<li><a href="<?php echo U('home/Member/safe_index');?>">账户安全</a></li>
        </ul>
    </div>
</div>
		<div class="m_right" style="min-height: 410px">
      <h2 style="padding: 20px 0 0 20px;font-weight: lighter;font-size: 16px">用户信息</h2>
        	<div class="m_des" style="margin-top: 10px">
            	<table border="0" style="width:870px; line-height:22px;" cellspacing="0" cellpadding="0">
                  <tr valign="top">
                  <!-- /TP/Public/images/user.jpg -->
                    <td width="115"> 
                    <?php if(empty($list['user_info'][picname])): ?><img id="dddd" src="/TP/Public/images/user.jpg" width="90" height="90"/>
                      <?php else: ?>
                        <img src="/TP/Uploads/user/<?php echo ($list['user_info'][picname]); ?>" width="90" height="90"/><?php endif; ?>
                    </td>
                    <td>
                    	<div class="m_user"><?php echo ($list['user']['username']); ?></div>
                        <p>
                            等级：注册用户
                        </p>
                    </td>
                  </tr>
                </table>
            </div>
            <div class="mem_t">账号信息</div>
            <?php if(empty($user)): ?><div class="m_des">
                <form action="<?php echo U('home/member/add');?>" method="post" enctype="multipart/form-data">
                  <table border="0" style="width:880px;"  cellspacing="0" cellpadding="0">
                  <tr height="45">
                      <td width="80" align="right">头像 &nbsp; &nbsp;</td>
                      <td><input type="file" name="pic" class="add_ipt" style="width:180px;" />&nbsp; <font color="#ff4e00">*</font></td>
                    </tr>
                    <tr height="45">
                      <td width="80" align="right">昵称 &nbsp; &nbsp;</td>
                      <td><input type="text" name="name" class="add_ipt" style="width:180px;" />&nbsp; <font color="#ff4e00">*</font></td>
                    </tr>
                    <tr height="45">
                      <td width="80" align="right">性别 &nbsp; &nbsp;</td>
                      <td><input type="radio" name="sex" value="1" />男&nbsp; 
                      <input type="radio" name="sex" value="2" />女　<font color="#ff4e00">*</font></td>
                    </tr>
                    <tr height="45">
                      <td width="80" align="right">手机 &nbsp; &nbsp;</td>
                      <td><input type="text" name="phone" class="add_ipt" style="width:180px;" />&nbsp; <font color="#ff4e00">*</font></td>
                    </tr>
                    <tr height="50">
                      <td>&nbsp;</td>
                      <td><input type="submit" value="确认" class="btn_tj" /></td>
                    </tr>
                  </table>
                </form>
            </div>
              <?php else: ?>
                <table border="0" class="mon_tab" style="width:260px;margin: 0 0 0 20px" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="40%" align="right">昵称：　</td>
                    <td width="60%"><span style="color:#555555;"><?php echo ($list['user_info']['name']); ?></span></td>
                  </tr>
                  <tr>
                    <td width="40%" align="right">性别：　</td>
                    <td><span style="color:#555555;"><?php echo ($arr[$list['user_info']['sex']]); ?></span></td>
                  </tr>
                  <tr>
                    <td width="40%" align="right">电话：　</td>
                    <td><span style="color:#555555;"><?php echo ($list['user_info']['phone']); ?></span></td>
                  </tr>
                  <tr>
                    <td width="40%" align="right">积分：　</td>
                    <td><span style="color:#555555;"><?php echo ($list['user_info']['integral']); ?></span></td>
                  </tr>
                  <tr>
                    <td width="40%" align="right">等级：　</td>
                    <td><span style="color:#555555;"><?php echo ($list['user_info']['grade']); ?></span></td>
                  </tr>
                  <tr>
                  <td width="40%" align="right">注册时间：　</td>
                    <td><span style="color:#555555;"><?php echo date("Y-m-d",$list['user']['addtime']);?></span></td>
                  </tr>
                  <tr height="50">
                      <td colspan="2" align="center">
                        <input type="submit" onclick="mod()" id="btn" value="修改" class="btn_tj" /></td>
                    </tr>
                </table><?php endif; ?>
        </div>
    </div>
	<!--End 用户中心 End--> 
    <!--Begin Footer Begin -->
    <div class="b_btm_bg b_btm_c">
        <div class="b_btm">
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b1.png" width="62" height="62" /></td>
                <td><h2>正品保障</h2>正品行货  放心购买</td>
              </tr>
            </table>
			<table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b2.png" width="62" height="62" /></td>
                <td><h2>满38包邮</h2>满38包邮 免运费</td>
              </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b3.png" width="62" height="62" /></td>
                <td><h2>天天低价</h2>天天低价 畅选无忧</td>
              </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b4.png" width="62" height="62" /></td>
                <td><h2>准时送达</h2>收货时间由你做主</td>
              </tr>
            </table>
        </div>
    </div>

    <div class="b_nav">
      <dl>                                                                                            
          <dt><a href="#">新手上路</a></dt>
            <dd><a href="#">售后流程</a></dd>
            <dd><a href="#">购物流程</a></dd>
            <dd><a href="#">订购方式</a></dd>
            <dd><a href="#">隐私声明</a></dd>
            <dd><a href="#">推荐分享说明</a></dd>
        </dl>
        <dl>
          <dt><a href="#">配送与支付</a></dt>
            <dd><a href="#">货到付款区域</a></dd>
            <dd><a href="#">配送支付查询</a></dd>
            <dd><a href="#">支付方式说明</a></dd>
        </dl>
        <dl>
          <dt><a href="#">会员中心</a></dt>
            <dd><a href="#">资金管理</a></dd>
            <dd><a href="#">我的收藏</a></dd>
            <dd><a href="#">我的订单</a></dd>
        </dl>
        <dl>
          <dt><a href="#">服务保证</a></dt>
            <dd><a href="#">退换货原则</a></dd>
            <dd><a href="#">售后服务保证</a></dd>
            <dd><a href="#">产品质量保证</a></dd>
        </dl>
        <dl>
          <dt><a href="#">联系我们</a></dt>
            <dd><a href="#">网站故障报告</a></dd>
            <dd><a href="#">购物咨询</a></dd>
            <dd><a href="#">投诉与建议</a></dd>
        </dl>
        <div class="b_tel_bg">
          <a href="#" class="b_sh1">新浪微博</a>            
          <a href="#" class="b_sh2">腾讯微博</a>
            <p>
            服务热线：<br />
            <span>400-123-4567</span>
            </p>
        </div>
        <div class="b_er">
            <div class="b_er_c"><img src="/TP/Public/images/er.gif" width="118" height="118" /></div>
            <img src="/TP/Public/images/ss.png" />
        </div>
    </div> 
    <div class="btmbg">
    <div class="btm">
          备案/许可证编号：蜀ICP备12009302号-1-www.dingguagua.com   Copyright © 2015-2018 尤洪商城网 All Rights Reserved. 复制必究 , Technical Support: Dgg Group <br />
            <img src="/TP/Public/images/b_1.gif" width="98" height="33" /><img src="/TP/Public/images/b_2.gif" width="98" height="33" /><img src="/TP/Public/images/b_3.gif" width="98" height="33" /><img src="/TP/Public/images/b_4.gif" width="98" height="33" /><img src="/TP/Public/images/b_5.gif" width="98" height="33" /><img src="/TP/Public/images/b_6.gif" width="98" height="33" />
        </div>      
    </div>
    <!--End Footer End -->    
</div>
<div class="eidt" >
    <form action="<?php echo U('Home/member/add');?>" method="post" enctype="multipart/form-data">
      <table style="margin-top: 30px">
          <tr>
            <td>头像：</td>
            <td><input type="file" name="pic"></td>
          </tr>
          <tr>
            <td>昵称：</td>
            <td><input type="text" name="name" value="<?php echo ($list['user_info']['name']); ?>"></td>
          </tr>
          <tr>
            <td>性别：</td>
            <td>
              <input type="radio" name="sex" value="1" 
              <?php echo ($list['user_info']['sex']==1?"checked":""); ?>>男
              <input type="radio" name="sex" value="2"
              <?php echo ($list['user_info']['sex']==2?"checked":""); ?>>女
            </td>
          </tr>
      </table>
      <input type="submit" value="保存" style="margin-left: 150px">
      <input class="cancel" type="button" value="取消">
    </form>
</div>
</body>
<script>
  var jq = jQuery.noConflict();
  // alert(<?php echo ($list['user_info']['grade']); ?>);
  function mod(){
      jq('<div class="blank"></div>').css({
            'width':jq(window).width(),
            'height':jq(window).height(),
            'background':'rgba(0,0,0,0.3)',
            'position':'fixed',
            'left':0,
            'top':0,
          }).appendTo(jq(document.body));
          init();
    }
      function init(){
        jq('.eidt').css({
          'margin-left':function(){
            return -(Math.ceil(jq(this).width() / 2));
          },
          'margin-top':function(){
            return -(Math.ceil(jq(this).height() / 2));
          },
          'display':'block',
        }).appendTo($(document.body));
      }

      jq('.cancel').click(function(){
          jq('.eidt').css('display','none');
          jq('.blank').remove();
      });
  
</script>
<!--[if IE 6]>
<script src="//letskillie6.googlecode.com/svn/trunk/2/zh_CN.js"></script>
<![endif]-->
</html>